package com.jctrip.hotel.management.model.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @Author: zxy
 * @CreateTime: 2023-08-28 16:32
 * @Description:
 */
@Data
public class InsertFeizhuPricePolicyParam {
    private String pricePolicyName;
    private Integer pricePolicyStatus;
    @ApiModelProperty("渠道账户id")
    private String routeId;
    @ApiModelProperty("投放渠道代码")
    private String routeChannelCode;
    @ApiModelProperty("支付类型(1=预付；2=现付；3=信用类后付)")
    private Integer paymentType;
    @ApiModelProperty("价格模式(0=卖价模式；1=底价模式)")
    private Integer priceCode;
    @ApiModelProperty("取哪个价格(0:retailPrice,1:purchasePrice)")
    private Integer priceGuide;
    @ApiModelProperty("价格容差")
    private BigDecimal priceTolerance;
    @ApiModelProperty("供应价格码")
    private String pricePolicyCode;
    @ApiModelProperty("早餐数")
    private Integer breakfastCount;
    @ApiModelProperty("取消政策")
    private CanCelRuleInfo cancelRule;
    @ApiModelProperty("拓展")
    private String extra;
    @ApiModelProperty("集团id")
    private String sourceCode;

    @Data
    public static class CanCelRuleInfo{
        private Integer cancelPolicyType;

        private Map<String, Object> policyInfo;
    }
}
